package com.xframe.xdal.core.constant;


/**
 * 功能描述:数据源常量
 *
 * @author xufeng
 * @version 1.0
 * @date 2022-09-28
 */
public class DataSourceConstant {

    /**
     * mysql url 配置样式
     */
    //public static final String MYSQL_URL_PATTERN = "jdbc:mysql://{}:{}/{}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&useAffectedRows=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai&useOldAliasMetadataBehavior=true&allowMultiQueries=true";
    public static final String MYSQL_URL_PATTERN = "jdbc:mysql://{}:{}/{}?serverTimezone=Asia/Shanghai&useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useAffectedRows=true&rewriteBatchedStatements=true&allowMultiQueries=true&useOldAliasMetadataBehavior=true&verifyServerCertificate=false";
    /**
     * oracle url 配置样式
     */
    public static final String ORACLE_URL_PATTERN = "jdbc:oracle:thin:@{}:{}/{}";
    /**
     * sqlserver url 配置样式
     */
    public static final String SQLSERVER_URL_PATTERN = "jdbc:sqlserver://{}:{};DatabaseName={}";
    /**
     * clickhouse url 配置样式
     */
    public static final String CLICK_HOUSE_URL_PATTERN = "jdbc:clickhouse://{}:{}/{}";
}
